﻿<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <script type="text/javascript" src="../dhtiny.js"></script>
</head>
<body>
<script type="text/javascript">
$dh.Require(["ctrl/imgbutton","ctrl/richbutton"]);
$dh.addLoader(function() {
        var but = new DHImgButton(document.body, {position:"absolute", left: 100, top: 100, width: 47, height:47,
            image: "images/but1.gif", image_over: "images/but2.gif", image_down: "images/but3.gif"
        });
        but.addEv("onclick", function() {
            alert("You clicked the image button");
        });
    
    
        var but2 = new DHRichButton(document.body, {
            position:"absolute", left: 200, top: 100, width: 125, height:25,
            image: "images/but1.gif", image_over: "images/but2.gif", image_down: "images/but3.gif",
            imgWidth: 55, imgPadding:10, text: "HOW ARE YOU?", lineHeight:"100%"
        });
        but2.addEv("onclick", function() {
            alert("You clicked on the image button with label");
        });
});
</script>    
 </body>
</html>
